home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
util
/
fam_1_1
/
part01
/
FAMtest.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1990-02-16
|
5KB
|
363 lines
/* test the FAM host */
if 0 == showlist('P', 'FAM') then do
address command
/* 'lmk tags' */
'lmk FAM'
'lmk FAMgrep'
'date >.:xyzzy/NNN0020'
'run cpr FAM FAM xyzzy DibbsFamGrep .arc.zoo.lhz #-#-#'
say waiting...
'waitforport FAM'
'waitforport FAM'
'waitforport FAM'
'waitforport FAM'
'waitforport FAM'
'waitforport FAM'
'waitforport FAM'
'waitforport FAM'
'waitforport FAM'
end
address 'FAM'
options results
signal on halt
say 'VERSION'
''version
call answer
say 'GETDIRNAME'
''getdirname
call answer
say 'GETBINEXTENS'
''getbinextens
call answer
say 'GETBUFENDLINE'
''getbufendline
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'OPEN'
''open
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'OPEN'
''open
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'GETIOERR'
''getioerr
call answer
say 'RESCAN'
'RESCAN'
call answer
say 'CLEAR'
'CLEAR'
call answer
say 'RESCAN1 FAM'
'rescan1 FAM'
call answer
say 'RESCAN1 NNN0007'
'rescan1 NNN0007'
call answer
say 'delete NNN0020'
address 'COMMAND' 'delete .:xyzzy/NNN0020'
call answer
say 'RESCAN1 NNN0007'
'rescan1 NNN0007'
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'RESCAN1 NNN0020'
'rescan1 NNN0020'
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'GETNAMES'
'getnames'
call answer
say 'GETNAMES %'
'getnames %'
call answer
say 'GETINFO NNN'
'GETINFO NNN'
call answer
say 'GETINFO NNN0005'
'GETINFO NNN0005'
call answer
say 'GETINFO B001.arc'
'GETINFO B001.arc'
call answer
say 'GETINFO B001.zoo'
'GETINFO B001.zoo'
call answer
say 'GETINFO B001.lhz'
'GETINFO B001.lhz'
call answer
say 'GETINFO B001.txt'
'GETINFO B001.txt'
call answer
say 'GETINFO W01'
'GETINFO W01'
call answer
say 'GETINFO AA0000000010'
'GETINFO AA0000000010'
call answer
say 'NEWFILE AA'
'NEWFILE AA'
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'NEWFILE NNN'
'NEWFILE NNN'
call answer
say 'NEWFILE N'
'NEWFILE N'
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'NEWFILE ZZZ'
'NEWFILE ZZZ'
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'NEWFILE NNN'
'NEWFILE NNN'
call answer
say 'GETINFO ' || stuff
'GETINFO ' || stuff
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'RESCAN'
'RESCAN'
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'GETNAMES'
''getnames
call answer
say 'NEWFILE W'
'NEWFILE W'
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'NEWFILE W'
'NEWFILE W'
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'NEWFILE W'
'NEWFILE W'
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'GETINFO tags'
'GETINFO tags'
call answer
say 'NEWFILE NNN'
'NEWFILE NNN'
call answer
holdit = stuff
say 'GETINFO' holdit
'GETINFO' holdit
call answer
say 'LOCKFILE - L' holdit
'LOCKFILE - L' holdit
call answer
address COMMAND 'echo >.:xyzzy/' || holdit
say 'RESCAN1' holdit
'RESCAN1' holdit
call answer
say 'GETINFO' holdit
'GETINFO' holdit
call answer
say 'LOCKFILE - L' holdit
'LOCKFILE - L' holdit
call answer
say 'GETINFO' holdit
'GETINFO' holdit
call answer
say 'LOCKFILE - L' holdit
'LOCKFILE - L' holdit
call answer
say 'LOCKFILE L -' holdit
'LOCKFILE L -' holdit
call answer
say 'GETINFO' holdit
'GETINFO' holdit
call answer
say 'LOCKFILE L -' holdit
'LOCKFILE L -' holdit
call answer
say 'GREP 0'
'GREP 0'
call answer
say 'GREP 2 akjdsf lakdjf wekr'
'GREP 2 akjdsf lakdjf wekr'
call answer
say 'GREP 0 U NAME JETSON'
'GREP 0 U NAME JETSON'
call answer
say 'GREP;0 U NAME JETSON'
'GREP;0 U NAME JETSON'
call answer
say 'GREP 0 W NAME JETSON'
'GREP 0 W NAME JETSON'
call answer
say 'GREP 0 U NAME GEORGE'
'GREP 0 U NAME GEORGE'
call answer
say 'GREP 0 U NAME JET'
'GREP 0 U NAME JET'
call answer
say 'GREP 0 U NAME ROCKET'
'GREP 0 U NAME ROCKET'
call answer
say 'GREP 0 U USERS ALTERNATE'
'GREP 0 U USERS ALTERNATE'
call answer
say 'GREP 0 U NOFIND ALTERNATE'
'GREP 0 U NOFIND ALTERNATE'
call answer
say 'GREP 0 U GAMMA THREE'
'GREP 0 U GAMMA THREE'
call answer
say 'CLOSE'
''close
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'CLOSE'
''close
call answer
say 'GETNAMECOUNT'
''getnamecount
call answer
say 'OPEN 0 0'
''open 0 0
call answer
say 'OPEN 0 0'
''open 0 0
call answer
say 'EXPUNGE NOW'
''EXPUNGE NOW
call answer
say
address command status
say
say showlist('P')
exit 0
answer:
say 'RC =' RC
say 'RESULT = >'result'<'
stuff = result
say
call delay 50
return 0
halt:
say "HALT ENCOUNTERED!!!"
address 'FAM'
expunge now
exit 0